package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class FlushDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("bos.txt");
        BufferedOutputStream bos=new BufferedOutputStream(fos);
        String str="仁慈的父我已坠入,看不见罪的国度";
        byte[] bata=str.getBytes(StandardCharsets.UTF_8);
        bos.write(bata);
        System.out.println("写出去了");
        bos.close();
    }
}
